<template>
     <div class="hotlist-bottom">
        <div class="box2">
          <div>------------- 为你推荐 -------------</div>
        </div>
          <router-link tag="div" :to="`/detail/${item.id}`" class="hot-content" v-for="item in productId" :key="item.id">
            <div class="hot-img">
              <img :src="item.image" />
            </div>
            <div class="hot-title">{{ item.store_name }}</div>
            <div class="hot-price">￥{{ item.price }}</div>
          </router-link>
        </div>
</template>

<script>
export default {
    props:{
      productId:Array
    }
}
</script>

<style lang="less" scoped>
.box2{
    width: 100%;
    text-align: center;
    padding: 20px 0px;
}
.hotlist-bottom {
  width: 100%;
  z-index: 2;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  .hot-content {
    width: 40%;
    .hot-img {
      width: 100%;
      img {
        width: 100%;
        height: 167px;
        display: block;
        border-radius: 6px;
      }
    }
    .hot-title {
      text-align: left;
      width: 100%;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      font-size: 14px;
    }
    .hot-price {
      text-align: center;
      color: #fc4141 !important;
      font-weight: 700;
      padding-bottom: 10px;
    }
  }
}
</style>